﻿using System.Linq.Expressions;
using System;

namespace NMA.Infrastructure.NHibernate.CriteriaExpression
{
    using NMA.Domain.Model;
    using NMA.Domain.Model.Contract;

    public interface ICriteriaExpressionFactory
    {
        Func<ICategory, bool> CreateCategorySearchCriteria(CategorySearchCriteria criteriaModel);
        // for Unit testing
        Func<ICategory, bool> CreateCategorySearchCriteria(CategorySearchCriteria criteriaModel, SearchCategoryCriteriaType criteriaType);
    }
}